package com.qxkj.demo.service.impl;

import com.qxkj.demo.dao.CeShiDao;
import com.qxkj.demo.pojo.CeShi;
import com.qxkj.demo.service.CeShiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CeShiServiceImpl implements CeShiService {
    @Resource
    private CeShiDao ceShiDao;
    @Override
    public List<CeShi> getAll() {
        List<CeShi> list = ceShiDao.getAll();
        return list;
    }

    @Override
    public int update(CeShi ceShi) {
        return ceShiDao.update(ceShi);
    }

    @Override
    public int delete(int id) {
        return ceShiDao.delete(id);
    }

    @Override
    public CeShi find(Long id) {
        return ceShiDao.find(id);
    }

}
